|
|
|
|
|
|
|
cannot use the OLE container control as part of an ActiveX document. Add the controls listed in Table 21.2 to the UserDocument as shown in Figure 21.3. |
|
|
|
|
|
|
|
|
Figure 21.3.
Creating a Database Viewer as an ActiveX document. |
|
|
|
|
|
|
|
|
As you can see, you are creating a simple database viewer display using the supplied Biblio database. When you have completed adding the controls to the document, set the following properties for each control as shown in Table 21.2. |
|
|
|
|
| TABLE 21.2. ADDING THE CONTROLS TO THE ACTIVEX DOCUMENT. | | Control | Property | Value | | Data Control | Name | docDataCtl | | DatabaseName | C:\program | files\devstudio\vb\biblio.mdb | | Recordsource | Authors | | Command Button | Name | cmdClose | | Caption | Close | | MSFlexGrid | Name | docFlexGrid | | DataSource | docDataCtl |
|
|
|
|
|
|
For this example, the only code you need to add is the End statement in the cmdClose click event. |
|
|
|
|
|